﻿<UserControl x:Class="Wpf3D.LoginControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="210" d:DesignWidth="350">
    <StackPanel>
        <Border Height="220" BorderBrush="#fff" BorderThickness="2,2,2,0" CornerRadius="5,5,0,0">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.713,0.698" StartPoint="0.713,-0.139">
                    <GradientStop Color="#fff" Offset="0.933"/>
                    <GradientStop Color="LightBlue" Offset="0.337"/>
                </LinearGradientBrush>
            </Border.Background>       
        <StackPanel Name="infoPanel" Orientation="Vertical" Margin="10">
            <StackPanel Name="typePanel" Orientation="Horizontal">
                <RadioButton Name="chatTypeServer" FontSize="24" Margin="20,0,20,0"
                             Checked="chatTypeServer_Checked" VerticalContentAlignment="Center">Server</RadioButton>
                <RadioButton Name="chatTypeClient" FontSize="24" Margin="40,0,20,0"
                             Checked="chatTypeClient_Checked"  VerticalContentAlignment="Center">Client</RadioButton>
            </StackPanel>
                <StackPanel Name="serverPanel" Orientation="Horizontal" Margin="0,10,0,0">
                    <Label Name="lblServer" FontSize="20" Width="120" HorizontalContentAlignment="Right"
                           VerticalContentAlignment="Center">Server:</Label>
                    <TextBox Height="30" Name="txtServer" Width="160" FontSize="20" VerticalContentAlignment="Center"></TextBox>
                </StackPanel>
                <StackPanel Name="usernamePanel" Orientation="Horizontal" Margin="0,10,0,0">
                    <Label Name="lblUserName" FontSize="20" Width="120" HorizontalContentAlignment="Right"
                           VerticalContentAlignment="Center">UserName:</Label>
                    <TextBox Height="30" Name="txtUsername" Width="160" FontSize="20" VerticalContentAlignment="Center"></TextBox>
                </StackPanel>
                <StackPanel Name="buttonPanel" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Button Name="btnLogin" Width="120" FontSize="20" Margin="10" Click="btnLogin_Click">Login</Button>
                    <Button Name="btnCancel" Width="120" FontSize="20" Margin="10" Click="btnCancel_Click">Cancel</Button>
                </StackPanel>
                </StackPanel>           
        </Border>
    </StackPanel>
</UserControl>
